# 创建时间：2025/5/2 星期五 15:27
# 创建人：李德才

class Animal:
    def eat(self):
        print("动物会吃")


class Dog(Animal):
    def eat(self):
        print("狗吃骨头")


class Cat(Animal):
    def eat(self):
        print("猫吃鱼")


class Person:
    def eat(self):
        print("人吃五谷杂粮")


def fun(obj):
    obj.eat()


print(fun(Dog()))
print(fun(Cat()))
print(fun(Person()))
